// @ts-ignore
/* eslint-disable */
import request from "../request/request";

/** addPurchaseList POST /api/purchaseList/add */
export async function addPurchaseListUsingPost(body, options) {
  return request("/api/purchaseList/add", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** deletePurchaseList POST /api/purchaseList/delete */
export async function deletePurchaseListUsingPost(body, options) {
  return request("/api/purchaseList/delete", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** editPurchaseList POST /api/purchaseList/edit */
export async function editPurchaseListUsingPost(body, options) {
  return request("/api/purchaseList/edit", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** getPurchaseListVOById GET /api/purchaseList/get/vo */
export async function getPurchaseListVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params,
  options
) {
  return request("/api/purchaseList/get/vo", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listPurchaseListByPage POST /api/purchaseList/list/page */
export async function listPurchaseListByPageUsingPost(body, options) {
  return request("/api/purchaseList/list/page", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listPurchaseListVOByPage POST /api/purchaseList/list/page/vo */
export async function listPurchaseListVoByPageUsingPost(body, options) {
  return request("/api/purchaseList/list/page/vo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listMyPurchaseListVOByPage POST /api/purchaseList/my/list/page/vo */
export async function listMyPurchaseListVoByPageUsingPost(body, options) {
  return request("/api/purchaseList/my/list/page/vo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** updatePurchaseList POST /api/purchaseList/update */
export async function updatePurchaseListUsingPost(body, options) {
  return request("/api/purchaseList/update", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
